package com.example.prom.ok.y2022.controller.kyc3.loqate;

import com.example.prom.ok.y2022.dto.loqate.CaptureFindReqDTO;
import com.example.prom.utils.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/inner/v2/common/kyc/loqate")
@Slf4j
public class KYCLoqateController {

    @Autowired
    private KYCLoqateService kycLoqateService;

    @PostMapping("address/capture/find")
    public ResponseResult captureFind(@RequestBody CaptureFindReqDTO captureFindReqDTO){
        return kycLoqateService.captureFind(captureFindReqDTO);
    }

    @GetMapping("address/capture/retrieve")
    public ResponseResult captureRetrieve(@RequestParam("id") String id){
        return kycLoqateService.captureRetrieve(id);
    }

}
